package src.week2;

import java.util.Scanner;

public class pp32 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String insert;
        ArrayStack arrayStack=new ArrayStack();

        System.out.println("请输入句子：");
        insert=scanner.nextLine();

        for (int index=0;index<insert.length();index++){
            arrayStack.push(insert.charAt(index));
        }
        for (int x=0;x<arrayStack.size();x++){
            System.out.println(arrayStack.pop());
        }
    }
}
